#include "Mutex.h"

Mutex::Mutex() {
	this->mutex = PTHREAD_MUTEX_INITIALIZER;
	pthread_mutex_init(&this->mutex,NULL);

}

Mutex::~Mutex() {
	pthread_mutex_destroy(&this->mutex);
}

void Mutex::lockear() {
	pthread_mutex_lock(&this->mutex);
}

void Mutex::deslockear() {
	pthread_mutex_unlock(&this->mutex);
}
